package cn.tedu.spring.eg3;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class ShopController {
    private String name;

    public ShopController() {
        System.out.println("1.无参构造实例化");
    }
    @Value("")
    public void setMean(String name) {
        this.name = name;
        System.out.println("2.set方法属性赋值");
    }
}
